versionName=$1
echo "确认版本号:$versionName"
if [[ $versionName =~ "SNAPSHOT" ]]
then
    echo "上传至maven-Snapshot"
    mvn deploy:deploy-file -DgeneratePom=true -Dmaven.test.skip -Dfile=./flutter/flutter-sale.aar -DgroupId=com.dankegongyu.android -DartifactId=flutter-sale -Dversion=$versionName -DSpackaging=aar -DrepositoryId=dk-snapshots -Durl=http://172.16.31.41:8081/nexus/content/repositories/dk-snapshots/
else
    echo "上传至maven-Release"
    mvn deploy:deploy-file -Dmaven.test.skip -Dfile=./flutter/flutter-sale.aar -DgroupId=com.dankegongyu.android -DartifactId=flutter-sale -Dversion=$versionName -Dpackaging=aar -DrepositoryId=dk-releases -Durl=http://172.16.31.41:8081/nexus/content/repositories/dk-releases/
fi